// 导入connect高阶组件
import {connect} from 'react-redux';

// 导入UI组件
import Comments from '../components/Comments';

// 导入actions
import {get_comments,add_comments,del_comments} from '../redux/actions';

export default connect(
(state)=>({comments:state}),
{
    get_comments,
    add_comments,
    del_comments
}
)(Comments)